package com.gz.university.crm.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Table
@Entity
@IdClass(SysMenuId.class)
public class SysMenu implements Serializable {
	/*
	 * CREATE TABLE sysmenu ( menuModule VARCHAR(30), #模块名称 menuPrivilege
	 * VARCHAR(30), #操作名称 sort INTEGER(11), #排序字段 menuName VARCHAR(200), #中文名称
	 * title VARCHAR(200), #标题 url VARCHAR(200), #链接路径 target VARCHAR(20), #目标框架
	 * icon VARCHAR(20), #使用的图标 remark TEXT, #说明 PRIMARY
	 * KEY(menuModule,menuPrivilege) )
	 */
	private String menuModule;// 模块名称
	private String menuPrivilege;// 操作名称
	private Integer sort;// 排序字段
	private String menuName;// 中文名称
	private String title;/* 标题 */
	private String url;// 链接路径
	private String target;// 目标框架
	private String icon;// 使用的图标
	private String remark;// 说明

	@Id
	@Column(length = 30)
	public String getMenuModule() {
		return menuModule;
	}

	public void setMenuModule(String menuModule) {
		this.menuModule = menuModule;
	}

	@Id
	@Column(length = 30)
	public String getMenuPrivilege() {
		return menuPrivilege;
	}

	public void setMenuPrivilege(String menuPrivilege) {
		this.menuPrivilege = menuPrivilege;
	}
    @Column
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
    @Column(length=80)
	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}
    @Column(length=80)
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
    @Column(length=60)
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
    @Column(length=40)
	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}
    @Column(length=60)
	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}
    @Column(length=100)
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
